package com.yswy.backstage.service;



import com.baomidou.mybatisplus.extension.service.IService;
import com.yswy.domain.entity.user.User;
import com.yswy.backstage.param.UserPARAM;
import com.yswy.common.model.ResultModel;

import java.util.Map;
import java.util.Set;

/**
 * This is Description
 *
 * @author linlifu
 * @date 2020/02/14
 */
public interface SsoService extends IService<User> {

    ResultModel login(UserPARAM userDTO);

    Boolean isAdmin(User user);

    Long isAdminToUserId(User user);

    ResultModel logout(User user);

    User getUserByAuthToken(String authToken);

    /**
     * 获取权限表
     *
     * @return
     */
    Map<String, Long> getAllModelPermission();

    Set<Integer> getPermissionMapByUser(User user);
}
